package com.ruoyi.system.ms.minio.dto;

import lombok.Data;

import java.io.Serializable;

/***
 * 针对若依平台的图片上传组件定制的dto
 */
@Data
public class MinioUploadDto implements Serializable {

    //完整的访问url
    private String url;
    //文件存放的相对路径名称---拼接上ip+端口即可访问
    private String fileName;
    //上传后新命名
    private String newFileName;
    //原文件名称
    private String originalFilename;

    public MinioUploadDto(String url, String fileName, String newFileName, String originalFilename) {
        this.url = url;
        this.fileName = fileName;
        this.newFileName = newFileName;
        this.originalFilename = originalFilename;
    }
}
